package cn.edu.xmist.supermarket.wtlvgcl.service.impl;

import cn.edu.xmist.supermarket.wtlvgcl.entity.ChanpinPO;
import cn.edu.xmist.supermarket.wtlvgcl.dao.ChanpinDao;
import cn.edu.xmist.supermarket.wtlvgcl.service.ChanpinService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.stereotype.Service;

@Service
public class ChanpinServiceImpl extends ServiceImpl<ChanpinDao, ChanpinPO>
    implements ChanpinService {
  @Override
  public List<ChanpinPO> selectPage(ChanpinPO product, Integer page, Integer size) {
    page = (page - 1) * size;
    return this.baseMapper.selectPage(product, page, size);
  }
}
